package com.livepan.server.service.model;

import org.mybatis.spring.annotation.MapperScan;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

public class ChapterModel {
    private String id;

    @NotEmpty(message = "课程id不能为空")
    private String courseId;

    @NotEmpty(message = "课程名称不能为空")
    @Size(min = 1,max = 8)
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId == null ? null : courseId.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
}
